/* 公共样式开始 */
* {
    margin: 0;
    padding: 0;
}

h1 {
    color: #f3f3f3;
}

a {
    color: grey;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: black;
    text-decoration: none;
}

canvas {
    width: 100%;
    height: 100%;
}

body {
    background: url(../img/wallhaven-rrowwm_3840x1600.png);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    color: #333;
    background-color: #f9f9f9;
    flex-direction: column;
    justify-content: flex-start;
    font-family: "幼圆";
    user-select: none;

    /* 文字无法选中 */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

li {
    list-style: none;
}

/* 公共样式结束 */

/* 热榜搜索开始 */
.Hot-search li {
    margin: 10px 0;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    line-height: 50px;
}

.Hot-search li:hover {
    font-size: 18px;
    background-color: rgb(224, 224, 224);
    transition: all 0.3s;
    border-bottom: #666 1px solid;
}

/* 热榜搜索结束 */

/* 商品容器开始 */
#products {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    opacity: 0;
    transition: opacity 1s;
    margin-top: 20px;
}

.product-info {
    display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    height: 166px;
    justify-content: space-between;
}

.product-info span {
    color: #c9c9c9;
}

#products .product {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

#products .product:hover {
    background-color: #e0e0e0;
}

#products .product img {
    width: 180px;
    margin-right: 20px;
    border-radius: 10px;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 5px grey;

}

#products .product .details {
    flex: 1;
}

#products .product h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

#products .product p {
    margin: 10px 0;
    color: #666;
}

#products .product a {
    color: grey;
    text-decoration: none;
    transition: color 0.3s;
}

#products .product a:hover {
    color: black;
    text-decoration: none;
}

.loaded #products {
    opacity: 1;
}

/* 商品容器结束 */

/* 回到顶部开始 */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    background-color: grey;
    padding: 15px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: white;
    transform: scale(1.1);
}

/* 回到顶部结束 */

/* 搜索框开始 */
input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 300px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #666;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: grey;
    color: white;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px;
}

button:hover {
    background-color: black;
    transform: scale(1.05);
}

.searchShopping {
    width: 40px;
    height: 40px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    height: 50px;
    background-color: white;
}

/* 搜索框结束 */
.zhushi {
    display: block;
    margin: 25px 0px;
}


/* 加载动画开始 */
.anim-webcover {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

#loading-img {
    border-radius: 10px;
    width: 200px;
    transform: translate(150%, 0);
    background-color: rgb(241, 241, 241);
}

/* 加载动画结束 */